package com.baidu.springboot_10_simpledemo.service.impl;

import com.baidu.springboot_10_simpledemo.domain.Department;
import com.baidu.springboot_10_simpledemo.mapper.DeptMapper;
import com.baidu.springboot_10_simpledemo.service.DeptService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class DeptServiceImpl implements DeptService {
    @Autowired
    DeptMapper mapper;
    @Override
    public List<Department> findAll() {
        List<Department> departments = mapper.findAll();
        return departments;
    }
}
